
import isMobile from 'ismobilejs'
const { userAgent } = window
const { phone, tablet } = isMobile(userAgent);
const device = () => phone ? 'phone' : tablet ? 'tablet' : 'pc'; 
export default device;